package HuffmanTree;

import java.util.ArrayList;
import java.util.List;

public class Main {
	public static void main(String[] args) {
		List<Node<String>> nodes = new ArrayList<Node<String>>();
		nodes.add(new Node<String>("s", 3));
		nodes.add(new Node<String>("t", 8));
		nodes.add(new Node<String>("a", 7));
		nodes.add(new Node<String>("e", 5));
		nodes.add(new Node<String>("c", 2));

		Node<String> root = HuffmanTree.createTree(nodes);

		HuffmanTree.encode(root);

	}
}
